﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using Handrise.Mobile.BasicModal.DataLayer;

namespace Handrise.CDCable.Mobile.Business
{
    /// <summary>
    /// 巡视设备
    /// </summary>
    [Serializable]
    [EntityMapping(TableName = "PlanDevice")]
    public class PlanDevice
    {
        /// <summary>
        /// 巡视设备ID
        /// </summary>
        [EntityMapping(IsKey = true, ColumnName = "PlanDeviceID")]
        public string PlanDeviceID { get; set; }

        /// <summary>
        /// 对应设备ID
        /// </summary>
        [EntityMapping(ColumnName = "DeviceID")]
        public string DeviceID { get; set; }

        /// <summary>
        /// 对应计划ID
        /// </summary>
        [EntityMapping(ColumnName = "PlanID")]
        public string PlanID { get; set; }

        /// <summary>
        /// 设备名称
        /// </summary>
        [EntityMapping(ColumnName = "DeviceName")]
        public string DeviceName { get; set; }

        /// <summary>
        /// 设备类型
        /// </summary>
        [EntityMapping(ColumnName = "DeviceType")]
        public string DeviceType { get; set; }

        /// <summary>
        /// 设备编码
        /// </summary>
        [EntityMapping(ColumnName = "DeviceCode")]
        public string DeviceCode { get; set; }

        /// <summary>
        /// 经度
        /// </summary>
        [EntityMapping(ColumnName = "Longitude")]
        public double? Longitude { get; set; }

        /// <summary>
        /// 纬度
        /// </summary>
        [EntityMapping(ColumnName = "Latitude")]
        public double? Latitude { get; set; }

        /// <summary>
        /// 到位确认状态： 未确认、已确认
        /// </summary>
        [EntityMapping(ColumnName = "ConfirmState")]
        public string ConfirmState { get; set; }

        /// <summary>
        /// 所属用户
        /// </summary>
        [EntityMapping(ColumnName = "UserName")]
        public string UserName { get; set; }
    }


    /// <summary>
    /// 巡视设备GPS
    /// </summary>
    [Serializable]
    [EntityMapping(TableName = "VPlanDevice")]
    public class VPlanDevice
    {
        /// <summary>
        /// 巡视设备ID
        /// </summary>
        [EntityMapping(IsKey = true, ColumnName = "PlanDeviceID")]
        public string PlanDeviceID { get; set; }

        /// <summary>
        /// 对应设备ID
        /// </summary>
        [EntityMapping(ColumnName = "DeviceID")]
        public string DeviceID { get; set; }

        /// <summary>
        /// 对应计划ID
        /// </summary>
        [EntityMapping(ColumnName = "PlanID")]
        public string PlanID { get; set; }

        /// <summary>
        /// 设备名称
        /// </summary>
        [EntityMapping(ColumnName = "DeviceName")]
        public string DeviceName { get; set; }

        /// <summary>
        /// 设备类型
        /// </summary>
        [EntityMapping(ColumnName = "DeviceType")]
        public string DeviceType { get; set; }

        /// <summary>
        /// 设备编码
        /// </summary>
        [EntityMapping(ColumnName = "DeviceCode")]
        public string DeviceCode { get; set; }

        /// <summary>
        /// 经纬度
        /// </summary>
        [EntityMapping(ColumnName = "GPSInfo")]
        public string GPSInfo { get; set; }

        /// <summary>
        /// 成都坐标纬度
        /// </summary>
        [EntityMapping(ColumnName = "LocalGPSInfo")]
        public string LocalGPSInfo { get; set; }

        /// <summary>
        /// 到位确认状态： 未确认、已确认
        /// </summary>
        [EntityMapping(ColumnName = "ConfirmState")]
        public string ConfirmState { get; set; }

        /// <summary>
        /// 所属用户
        /// </summary>
        [EntityMapping(ColumnName = "UserName")]
        public string UserName { get; set; }
    }
}
